const qs = require("querystring");

// 解析查询数据

var str = "username=admin&pass=123456";

console.log(str)

console.log(qs.parse(str));


var obj = { username: 'admin', pass: '123456' }

console.log(qs.stringify(obj,"$"))
